var mongoose = require('./db_test');
// 定义文档结构
const userSchema = mongoose.Schema({
    username:{
        type:String,
        required:true
    },
    password:{
        type:String,
        required:true
    },
    type:{
        type:String,
        required:true
    },
    header:String,
    post:String,
    info:String,
    company:String,
    salary:String
});
// 定义Model
const User = mongoose.model('user', userSchema);

module.exports = User;
